package com.york.dao;

import org.springframework.stereotype.Component;

@Component //将这个类标注为Spring的一个组件，放到容器中！
public class Dog {
    public String name = "dog";
    public void shout() {
        System.out.println("wang~");
    }
}